Skip to content

fix: eliminate TOCTOU race in zip packaging - #3855

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/packager-toctou
Open

fix: eliminate TOCTOU race in zip packaging#3855
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/packager-toctou

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Open file once and derive both stat info and content from the same file descriptor to prevent race conditions where the file is modified between stat() and read_bytes() calls.

Open file once and derive both stat info and content from the same file
descriptor to prevent race conditions where the file is modified between
stat() and read_bytes() calls.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 29, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant